<?php if (!defined('THINK_PATH')) exit(); if(is_array($category)): $i = 0; $__LIST__ = $category;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cate): $mod = ($i % 2 );++$i; if(($current) == $cate['id']): ?><li class="list-group-item widget-cate">
            <a href="<?php echo U('Index/index?category='.$cate['name']);?>">
                <?php echo ($cate["name"]); ?>
            </a>
        </li>
    <?php else: ?>
        <li class="list-group-item widget-cate">
            <a href="<?php echo U('Index/index?category='.$cate['name']);?>">
                <?php echo ($cate["name"]); ?>
            </a>
        </li><?php endif; endforeach; endif; else: echo "" ;endif; ?>